<html lang="en">	
<head>
	<meta charset="utf-8">
	<meta content="随时随地发现新鲜事！微博带你欣赏世界上每一个精彩瞬间，了解每一个幕后故事。分享你想表达的，让全世界都能听到你的心声！" name="description">
	<title>我的微博</title>
	<link rel="stylesheet" type="text/css" href="css/weibo.css">
	<script type="text/javascript" src="js/jquery-1.12.3.min.js"></script>
	<script type="text/javascript">
	//判断登录状态
	function userstate(){
		var user;
		$.ajax({
			url:'userstate',
			type:'get',
			async:false,
			dataType:'json',
			success:function (result){
				user = result;
			},
			error:function (){
				
			}
		});
		return user;
	}
		
		//body的onload事件
		function myload(){
			
			 var user = userstate();
			
			var top_public_position = $("#top_public_position");
			//判断登录状态
			if(user!= null){
				 top_public_position.html(top_public_position.html()+ "<div class='login' id='userlogin'>"+"<span>用户名:"+user.username+"</span>"+"</div>"); 
				 $("#w_unlogin_v2").css("vertical-align"," middle");
				 $("#uname").html(user.username);
				 
				 
				 
			}else{
				top_public_position.html(top_public_position.html()+"<div class='login' id='login'><ul><li><a href='http://weibo.com/signup/signup.php' class='s_txt1'>注册</a>"+
				"</li><li class='s_line1'></li><li><a href='#' class='s_txt1'>登录</a></li>	</ul>"	);
			} 
			
		}
		
		/* function insertarticle(){
			$.post('insertarticle',$.("#publishform").serialize(),function (a){
				alert(a);
			})
		}
		 */
	</script>
</head>
<body class="frame_login" onload="myload()">
	<div class="miniblog">
		<div class="miniblog_fb">
			<div class="top">
					<div class="top_public clearfix">
						<!-- 顶部导航 -->
						<div class="top_public_logo">
							<a href="http://weibo.com/?topnav=1&mod=logo" class="box" target="_top">
								<span class="logo"></span>
							</a>
						</div>
						<div class="top_public_search">
							<span class="placeholder">大家正在搜：</span>
							<input type="text" node-type="searchInput" class="t_input" name="14860362018812" value="">
							<a href="#" target="_top" title="搜索" class="glass"></a>
							<div></div>
						</div>
						<div class="top_public_position">
							<div class="nav">
								<ul class="nav_list">
									<li>
										<a href="http://weibo.com/" class="s_txt1">
											<span class="pic pic1"></span>
											<span class="s_txt1">首页</span>
										</a>
									</li>
									<li>
										<a href="http://weibo.com/tv" class="s_txt1">
											<span class="pic pic2"></span>
											<span class="s_txt1">视频</span>
										</a>
									</li>
									<li>
										<a href="http://d.weibo.com/?topnav=1&amp;mod=logo" class="s_txt1">
											<span class="pic pic3"></span>
											<span class="s_txt1">发现</span>
										</a>
									</li>
									<li>
										<a href="http://game.weibo.com/?topnav=1&mod=logo&wvr=6" class="s_txt1">
											<span class="pic pic4"></span>
											<span class="s_txt1">游戏</span>
										</a>
									</li>
								</ul>
							</div>
							
							
						</div>
					</div>	
			</div>
			<div class="main clearfix" id="plc_frame">
				<div class="fream">
					<!-- 左导 -->
					<div class="main_l">
						<div class="wb_left_nav">
							<div class="unlogin_left_nav">
								<div class="lev_box">
									<div class="lev">
										<a href="#" class="s_txt1 lev_curr">
											<span class="ico_block"></span>
											<span class="levtxt">热门</span>
										</a>
									</div>
									<div class="lev">
										<a href="#" class="s_txt1">
											<span class="ico_block1"></span>
											<span class="levtxt">明星</span>
										</a>
									</div>
									<div class="lev">
										<a href="#" class="s_txt1">
											<span class="ico_block1"></span>
											<span class="levtxt">搞笑</span>
										</a>
									</div>
									<div class="lev">
										<a href="#" class="s_txt1">
											<span class="ico_block1"></span>
											<span class="levtxt">社会</span>
										</a>
									</div>
									<div class="lev_line lev_line_v2">
										<fieldset></fieldset>
									</div>
									<div class="lev">
										<a href="#" class="s_txt1">
											<span class="ico_block2"></span>
											<span class="levtxt">视频</span>
										</a>
									</div>
									<div class="lev_line lev_line_v2">
										<fieldset></fieldset>
									</div>
									<div class="lev">
										<a href="#" class="s_txt1">
											<span class="ico_block3"></span>
											<span class="levtxt">头条</span>
											<span class="new_count">HOT</span>
										</a>
									</div>
									<div class="lev">
										<a href="#" class="s_txt1">
											<span class="ico_block1"></span>
											<span class="levtxt">情感</span>
										</a>
									</div>
									<div class="lev">
										<a href="#" class="s_txt1">
											<span class="ico_block1"></span>
											<span class="levtxt">时尚</span>
										</a>
									</div>
									<div class="lev">
										<a href="#" class="s_txt1">
											<span class="ico_block1"></span>
											<span class="levtxt">军事</span>
										</a>
									</div>
									<div class="lev_line lev_line_v2">
										<fieldset></fieldset>
									</div>
									<div class="lev">
										<a href="#" class="s_txt1">
											<span class="ico_block4"></span>
											<span class="levtxt">榜单</span>
											<span class="new_count new_count2">NEW</span>
										</a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<!-- /左导 -->
					<div id="plc_main">
					<!-- 
					
					
					
					
					
					
					 -->
						<div class="main_r">
							<div class;"main_r_t">
								<div class="w_unlogin_v2">
									<div class="login_box">
										<div class="login_box" id='login_box1'>
									<table style=" margin: 0 auto; height:250px;">
										<tr>
											<td style=" colspan="3">
											<h1>用户名</h1>
												<h1 id="uname"></h1>
											</td>
										</tr>
										<tr>
											<td>关注100</td>
											<td>粉丝60000</td>
											<td>微博100</td>
										</tr>
										
									</table>	
								</div>
									</div>
									
									<div class="login_bot">
										<div class="login_andrio">
											<a target="_blank" class="s_txt21" href="http://c.weibo.cn/client/guide/download">
					                          <span class="icon_img andrio">
					                          </span>
					                          <span class="icon_txt s_txt21">
					                          	Android
					                          	<br>客户端下载
					                          </span>
					                        </a>
										</div>
										<div class="login_ios">
											<a target="_blank" class="s_txt21" href="https://itunes.apple.com/cn/app/id350962117?mt=8">
					                          <span class="icon_img ios"></span>
					                          <span class="icon_txt s_txt21">
					                          	iPhone
					                          	<br>客户端下载
					                          </span>
					                        </a>
										</div>
									</div>
								</div>
							</div>
							
							<!-- <div id="pl_unlogin_home_hot">
							pl_unlogin_home_find
								
							</div> -->
							
						</div>						
						<div id="plc_home_main">
							<div class="fream_c">
								<div id="pl_home_feed">
										<!-- 榜单位	置 -->
									<div class="pictext_i pictext_i_v5" id="pictext_i_v5">
										<div class="m_wrap">
												<!-- feed内容 -->
											<ul class="pt_ul clearfix">
													<!--/livetv card-->
												<li class="pt_li pt_li_2 s_bg2">
												<form id="pub">
													<div id="publishform">
														<h1>发表此刻心情</h1>
													</div>
													<div>
															<textarea rows="10" cols="85" style="resize:none; " id="contenttext" name="contenttext">
																
															</textarea>
													</div>
													<div>
														<div style="width:50%;">
															<input type="file" value="添加图片" name="pic">
														</div>
														<div style="width:50%;">
															<button onclick="insertarticle()">发表</button>
														</div>
													</div>
													</form>
												</li>
													<!--livetv card -->
												<li class="pt_li pt_li_2 s_bg2" href="http://weibo.com/ttarticle/p/show?id=2309404070979620974513">
												
												</li>
												<li class="pt_li pt_li_3 s_bg2">
													
												</li>
												<li class="pt_li pt_li_1 s_bg2" href="http://weibo.com/tv/v/EtHvww5YR?ref=feedsdk&type=ug">
													
													
												</li>
												<li class="pt_li pt_li_2 s_bg2" href="http://weibo.com/ttarticle/p/show?id=2309404070979620974513">
													
												</li>
												<li class="pt_li pt_li_1 s_bg2" href="http://weibo.com/1974561081/EtY90nTtS?ref=feedsdk">
													
													
												</li>																						
												<div class="wb_cardwrap s_bg2">
													<div class="wb_empty">
														<div class="wb_innerwrap">
															<p class="text">
																<i class="w_loading"></i>
																正在加载中，请稍候...
															</p>
														</div>
													</div>
												</div>
											</ul>
												<!-- /feed内容 -->
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="footer s_bg2">
					<div class="footer_link clearfix">
						<dl class="list">
							<dt>微博精彩</dt>
							<dd>
								<a class="col1 S_txt2" href="http://hot.plaza.weibo.com/?bottomnav=1&wvr=6&type=re&act=day">热门微博</a>
								<a class="col1 S_txt2" href="http://huati.weibo.com/?bottomnav=1&wvr=6">热门话题</a>
							</dd>
							<dd>
								<a class="col1 S_txt2" href="http://verified.weibo.com/?bottomnav=1&wvr=6">名人堂</a>
								<a class="col1 S_txt2" href="http://vip.weibo.com/home?bottomnav=1&wvr=6">微博会员</a>
							</dd>
							<dd>
								<a class="col1 S_txt2" href="http://photo.weibo.com/?bottomnav=1&wvr=6">微相册</a>
								<a class="col1 S_txt2" href="http://game.weibo.com/?bottomnav=1&wvr=6">微游戏</a>
							</dd>
							<dd>
								<a class="col1 S_txt2" href="http://data.weibo.com/index/?bottomnav=1&wvr=6">微指数</a>
							</dd>
						</dl>
						<dl class="list">
							<dt>手机玩微博</dt>
							<dd>
								<span class="T_code co12">
									<img src="http://img.t.sinajs.cn/t6/style/images/common/footer_code.jpg" alt="二维码">
								</span>
								<a class="T_txt S_txt2" href="http://m.weibo.cn/client/guide/show">扫码下载，更多版本
								<br>
								戳这里
								</a>
							</dd>
						</dl>
						<dl class="list">
							<dt>认证&合作</dt>
							<dd>
								<a class="col1 S_txt2" href="http://verified.weibo.com/verify?bottomnav=1&wvr=6">申请认证</a>
								<a class="col1 S_txt2" href="http://open.weibo.com/?bottomnav=1&wvr=6">开放平台</a>
							</dd>
							<dd>
								<a class="col1 S_txt2" href="http://e.weibo.com/introduce/introduce?bottomnav=1&wvr=6">企业微博</a>
								<a class="col1 S_txt2" href="http://open.weibo.com/connect?bottomnav=1&wvr=6">链接网站</a>
							</dd>
							<dd>
								<a class="col1 S_txt2" href="http://weibo.com/static/logo?bottomnav=1&wvr=6">微博标识</a>
								<a class="col1 S_txt2" href="http://tui.weibo.com/?bottomnav=1&wvr=6">广告服务</a>
							</dd>
							<dd>
								<a class="col1 S_txt2" href="http://xueyuan.weibo.com/?bottomnav=1&wvr=6">微博商学院</a>
								<a class="col1 S_txt2" target="_blank" href="http://tui.weibo.com/intro/agent?bottomnav=1&wvr=6">广告代理商</a>
							</dd>
						</dl>
						<dl class="list">
							<dt>微博帮助</dt>
							<dd>
								<a class="col4 S_txt2" target="_blank" href="http://help.weibo.com/faq/q/358?bottomnav=1&wvr=6">常见问题</a>
							</dd>
							<dd>
								<a class="col4 S_txt2" target="_blank" href="http://help.weibo.com/selfservice?bottomnav=1&wvr=6">自助服务</a>
							</dd>							
						</dl>
					</div>
					<div class="other_link s_bg1 clearfix">
						<p class="copy">
							<a target="_blank" href="http://help.weibo.com/?refer=didao&bottomnav=1&wvr=6" class="S_txt2">
								<i class="W_icon icon_weibo"></i>
								微博客服
							</a>
							<a class="S_txt2" target="_blank" href="http://help.weibo.com/newtopic/suggest?bottomnav=1&wvr=6">意见反馈</a>
							<a class="S_txt2" target="_blank" href="http://weibo.com/aj/static/report.html?_wv=6">舞弊举报</a>
							<a class="S_txt2" target="_blank" href="http://open.weibo.com/?bottomnav=1&wvr=6">开放平台</a>
							<a class="S_txt2" target="_blank" href="http://hr.weibo.com/?bottomnav=1&wvr=6">微博招聘</a>
							<a class="S_txt2" target="_blank" href="http://news.sina.com.cn/guide/?bottomnav=1&wvr=6">新浪网导航</a>
							<a class="S_txt2" target="_blank" href="http://service.account.weibo.com/?bottomnav=1&wvr=6">举报处理大厅</a>
							<select node-type="changeLanguage" >
                				<option value="zh-cn" selected="">中文(简体)</option>
                				<option value="zh-tw">中文(臺灣)</option>
                				<option value="zh-hk">中文(香港)</option>
                				<option value="en">English</option>
              				</select>
						</p>
						<p class="copy_v2">
							<a class="S_txt2" target="_blank" href="http://weibo.com/aj/static/jicp.html?_wv=6">京ICP证100780号</a>
							<a class="S_txt2" href="http://weibo.com/aj/static/medi_license.html?_wv=6" target="__blank">互联网药品服务许可证</a>
							<a class="S_txt2" href="http://weibo.com/aj/static/medi_health_license.html?_wv=6" target="__blank">互联网医疗保健许可证</a>
							<a class="S_txt2" href="http://weibo.com/aj/static/jww.html?_wv=6" target="__blank">京网文[2014]2046-296号</a> 
							<a class="S_txt2" href="http://www.miibeian.gov.cn" target="__blank">京ICP备12002058号</a> 
							<a class="S_txt2" href="http://weibo.com/aj/static/license.html?_wv=6" target="__blank">增值电信业务经营许可证B2-20140447</a>
             			</p>
						<p class="company">
							<span class="copy S_txt2">Copyright © 2009-2017 WEIBO 北京微梦创科网络技术有限公司</span>
							<span>
								<a class="S_txt2" target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11000002000019">
									<i class="icon_netsecurity">
									</i>京公网安备11000002000019号
								</a>
        			    </span>
        			</p>
					</div>
				</div>
			</div>
			
		</div>
	</div>	

	<!-- <script type="text/javascript">

	var fix = getElementByClassName('lev_box')[0];

	function getScrollOffset(){
		if(window.pageXOffset){
			return{
				x:window.pageXOffset
				y:window.pageYOffset
			}else{
				return{
					x:document.documentElement.scrollLeft+document.body.scrollLeft
					y:document.documentElement.scrollTop+document.body.scrollTop
				}
			}
		}
	}



	</script>
 -->



</body>
</html>